package hy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

//使用该注解，会重构session,参数为session存活时间
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 10000*30)
@SpringBootApplication
public class SessionRedisApplication {

	public static void main(String[] args) {
		SpringApplication.run(SessionRedisApplication.class, args);
	}

}
